Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents Namespace > DocumentFactory Class > UploadDocument Method : UploadDocument(ObjectCache,Uri,Byte[],Int32,Int32) Method |
public static void UploadDocument( ObjectCache cache, Uri uri, byte[] data, int offset, int length )
'Declaration
Public Overloads Shared Sub UploadDocument( _ ByVal cache As ObjectCache, _ ByVal uri As Uri, _ ByVal data() As Byte, _ ByVal offset As Integer, _ ByVal length As Integer _ )
'Usage
Dim cache As ObjectCache Dim uri As Uri Dim data() As Byte Dim offset As Integer Dim length As Integer DocumentFactory.UploadDocument(cache, uri, data, offset, length)
public static void uploadDocument(ObjectCache cache, URI uri, byte[] data, int offset, int length)
public: static void UploadDocument( ObjectCache^ cache, Uri^ uri, array<byte>^ data, int offset, int length )
BeginUpload, UploadDocument and AbortUploadDocument can be used to upload a document in chunks to the cache used by this DocumentFactory. After the document is uploaded, you can use LoadFromUri to create a Document object from the data.
Refer to Uploading Using the Documents Library for detailed information on how to use these methods and the various options used.
For an example, refer to BeginUpload